package com.zt.ztzx.controller;

import com.github.pagehelper.PageInfo;
import com.zt.ztzx.model.entity.device.DeviceType;
import com.zt.ztzx.model.vo.DeviceVo;
import com.zt.ztzx.model.vo.common.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("deviceType")
public class DeviceTypeController {

    @Autowired
    private com.zt.ztzx.service.DeviceTypeService deviceTypeService;

    @GetMapping("/findAll")
    @Operation(summary = "设备分类列表", description = "设备分类列表",method = "findAll方法")
    public Result<List<DeviceType>> getDeviceTypeList(Integer tid){
        return deviceTypeService.getDeviceTypeList(tid);
    }
}
